ÄúµÄλÖãºÑ°ÃÎÍøÊ×Ò³£¾±à³ÌÀÖÔ°£¾VBScript£¾VBScript


objects constants operators statements functions properties methods






FUNCTION:  TimeSerial( )

TimeSerial(Hour, Minute, Second)

The TimeSerialunction converts the arguments into the variant of subtype Date.


There are three mandatory arguments.

Hour

The Hour argument is the hour as a string or integer.


Minute

The Minute argument is the minute as a string or integer.


Second

The Second argument is the second as a string or integer.

Code:
<% =TimeSerial(12, 11, 10) %>

Output:
12:11:10 PM

Code:
<% =TimeSerial("12", "11", "10") %>

Output:
12:11:10 PM